package com.hsmpay.mobile.dao.user.impl;

import com.hsmpay.common.dao.Impl.BaseDaoSupport;
import com.hsmpay.mobile.dao.user.SendmsgLogDao;
import com.hsmpay.mobile.pojo.user.SendmsgLog;
import org.springframework.stereotype.Repository;

/**
 * 用户交易限制 Dao实现类
 * 对应的pojo 是 SendmsgLog
 *
 * @param <Entity>
 * @param <Query>
 * @author lyc
 *         建立时间：2015-4-27
 */
@Repository("sendmsgLogDao")
public class SendmsgLogDaoImpl extends BaseDaoSupport<SendmsgLog, Long> implements SendmsgLogDao<SendmsgLog, Long> {


    //根据条件查询最近一条发送短信的日志
    public SendmsgLog searchFirstEntity(SendmsgLog sendmsgLog) throws Exception {

        return (SendmsgLog) getSqlMapClientTemplate().queryForObject("sendmsgLogSqlMap.searchFirstEntity", sendmsgLog);
    }

}
